<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>360考评-目的地运营集团数据管理平台</title>
<include file="Include:style" />
<style>
	td{ width: 5.555%; }
	.c_m{ text-align: center; font-weight: bold; vertical-align: middle !important; }
	input{ text-align: center; }
	.c_v{ text-align: center; vertical-align: middle !important; }
	.w60{ width: 60px; }
	.form-btn-item{ position: relative; }
</style>
</head>
<body>
<include file="Include:header" />
<include file="Include:left" />
<div id="main">
	<div class="crumbs">
		<div class="crumbs-text">{$tid['tname']}</div>
	</div>
	<div id="content">
		<div class="form-main"><div class="form-title">{$tid['tname']}</div></div>
		<form method="post" name="number_validate" id="password_validate" novalidate="novalidate">
		<if condition="$app1 eq NULL">
		<input type="hidden" name="action" value="add">
		<else/>
		<input type="hidden" name="action" value="edit">
		</if>
		<input type="hidden" name="id" value="{$id}">
		<div class="table-scrollx">
			<table class="table table-bordered table-hover">
				<tr>
					<td class="c_m" style="width:15%" colspan="2">被考核者姓名</td>
					<td style="width:15%" colspan="2">{$sup1['username']}</td>
					<td class="c_m" style="width:15%" colspan="2">被考评者职务</td>
					<td style="width:15%" colspan="2">{$sup1['position_name']}</td>
					<td class="c_m" style="width:15%" colspan="2">被考评者所属部门</td>
					<td style="width:15%" colspan="2">{$sup1['department_name']}</td>
				</tr>
				<tr>
					<td class="c_m" style="width:15%" colspan="2">评价制度及分数</td>
					<td class="c_m" colspan="10">
						1分— 有待提高   2分— 可以接受   3分— 一般   4分— 好   5分— 优秀
					</td>
				</tr>
				<tr>
					<td class="c_m" colspan="2">考核项目</td>
					<td class="c_m" colspan="7">考核内容</td>
					<td class="c_m">评分</td>
					<td class="c_m" colspan="2">备注</td>
				</tr>
				<tr>
					<td class="c_m" rowspan="4" colspan="2">{$tid['b1']}</td>
					<td colspan="7">1.{$tid['b1_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum1']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum1'] neq NULL"><if condition="$app1['sum1'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess1']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess1']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">2.{$tid['b2_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum2']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum2'] neq NULL"><if condition="$app1['sum2'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess2']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess2']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">3.{$tid['b3_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum3']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum3'] neq NULL"><if condition="$app1['sum3'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess3']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess3']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">4.{$tid['b4_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum4']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum4'] neq NULL"><if condition="$app1['sum4'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess4']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess4']}">
						</if>
					</td>
				</tr>
				<tr>
					<td class="c_m" rowspan="4" colspan="2">{$tid['b5']}</td>
					<td colspan="7">5.{$tid['b5_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum5']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum5'] neq NULL"><if condition="$app1['sum5'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess5']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess5']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">6.{$tid['b6_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum6']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum6'] neq NULL"><if condition="$app1['sum6'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess6']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess6']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">7.{$tid['b7_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum7']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum7'] neq NULL"><if condition="$app1['sum7'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess7']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess7']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">8.{$tid['b8_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum8']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum8'] neq NULL"><if condition="$app1['sum8'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess8']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess8']}">
						</if>
					</td>
				</tr>
				<tr>
					<td class="c_m" rowspan="4" colspan="2">{$tid['b9']}</td>
					<td colspan="7">9.{$tid['b9_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum9']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum9'] neq NULL"><if condition="$app1['sum9'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess9']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess9']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">10.{$tid['b10_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum10']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum10'] neq NULL"><if condition="$app1['sum10'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess10']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess10']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">11.{$tid['b11_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum11']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum11'] neq NULL"><if condition="$app1['sum11'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess11']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess11']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">12.{$tid['b12_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum12']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum12'] neq NULL"><if condition="$app1['sum12'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess12']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess12']}">
						</if>
					</td>
				</tr>
				<tr>
					<td class="c_m" rowspan="4" colspan="2">{$tid['b13']}</td>
					<td colspan="7">13.{$tid['b13_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum13']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum13'] neq NULL"><if condition="$app1['sum13'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess13']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess13']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">14.{$tid['b14_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum14']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum14'] neq NULL"><if condition="$app1['sum14'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess14']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess14']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">15.{$tid['b15_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum15']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum15'] neq NULL"><if condition="$app1['sum15'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess15']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess15']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">16.{$tid['b16_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum16']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum16'] neq NULL"><if condition="$app1['sum16'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess16']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess16']}">
						</if>
					</td>
				</tr>
				<tr>
					<td class="c_m" rowspan="4" colspan="2">{$tid['b17']}</td>
					<td colspan="7">17.{$tid['b17_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum17']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum17'] neq NULL"><if condition="$app1['sum17'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess17']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess17']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">18{$tid['b18_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum18']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum18'] neq NULL"><if condition="$app1['sum18'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess18']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess18']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">19.{$tid['b19_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum19']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum19'] neq NULL"><if condition="$app1['sum19'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess19']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess19']}">
						</if>
					</td>
				</tr>
				<tr>
					<td colspan="7">20.{$tid['b20_remark']}</td>
					<td class="Text_c">
						<if condition="$app1['status'] eq 1">
							{$app1['sum20']}
						<else/>
							<select name="sum[]" class="form-control w100 select-add" autocomplete="off">
								<for start="5" end="0" comparison="egt" step="-1">
									<option value="{$i}" <if condition="$app1['sum20'] neq NULL"><if condition="$app1['sum20'] eq $i">selected</if><else/><if condition="$i eq 5">selected</if></if>>{$i}</option>
								</for>
							</select>
						</if>
					</td>
					<td class="Text_c" colspan="2">
						<if condition="$app1['status'] eq 1">
							{$app1['sum_mess20']}
						<else/>
							<input type="text" name="sum_mess[]" class="form-control w200 ml10 mr10 Text_l" autocomplete="off" value="{$app1['sum_mess20']}">
						</if>
					</td>
				</tr>
				<tr>
					<if condition="$app1['status'] eq 1">
						<td class="c_m" colspan="2">考评者总体意见：</td>
						<td colspan="6">{$app1['comment']}</td>
						<td class="c_m" colspan="1">总计：</td>
						<td colspan="3" class="c_m">{$app1['sum_all']+0}</td>
					<else/>
						<td class="c_m" colspan="2">考评者总体意见：</td>
						<td colspan="10"><textarea name="comment" class="form-control w500 h150" autocomplete="off">{$app1['comment']}</textarea><span class="error-item">必填项</span></td>
					</if>
				</tr>
			</table>
		</div>
		<div class="form-btn-item">
			<if condition="($app1 eq NULL) or ($app1['status'] eq -1)">
				<button class="btn btn-submit" type="button">提交</button>
			<else/>
				<button class="btn lost_submit" type="button" mid="{$id}">放弃提交</button>
			</if>
			<button class="btn btn-default goback1" type="button">返回</button>
		</div>
		</form>
	</div>
</div>
<include file="Include:javascript" />
<script type="text/javascript">
$(function(){
	$(".goback1").click(function(){
		var $url = "{$_SESSION['jixiao_appraisal']}";
		window.location.href = $url;
	});
	$('.lost_submit').click(function(){
		var mid = $(this).attr("mid");
		$.ajax({
			cache:true,
			type:"POST",
			dataType:"json",
			data:{"id":mid,"action":"down"},
			url:"__APP__/Index/jixiao_evaluation_two_ajax",
			success:function(data){
				success_pop(data.status,data.msg);
			}
		});
	})
	$(function(){
		$('.btn-submit').click(function(){
			var tag = false;
			if($("[name='comment']").val()==''){
				$("[name='comment']").addClass('red_border');
				$("[name='comment']").next('.error-item').show();
				tag = true;
			}
			if(tag){
				return false;
			}else{
				$.ajax({
					type:"POST",
					async:false,
					dataType:"json",
					data:$("[name='number_validate']").serialize(),
					url:"__APP__/Index/jixiao_evaluation_two_ajax",
					success:function(data){
						success_pop(data.status,data.msg,1,"__APP__/Index/jixiao_appraisal");
					}
				});
			}
		})
		$("[name='comment']").focus(function(){
			$("[name='comment']").removeClass('red_border').next('.error-item').hide();
		})
	})
});
</script>
</body>
</html>